using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Mbs;
using Mbs.Windows;
using Mbs.ComponentModel.Container;

namespace Shell.Module
{
    [Component(Service=typeof(IShellPresenter))]
	public class ShellPresenter :ShellPresenter<ShellForm>
	{
        public override IEnumerator<IDisposable> Subscribe()
        {
            yield return CommandNames.About.Subscribe<EventArgs>((s, e) => new AboutBox().ShowDialog());
            yield return CommandNames.Exit.Subscribe<EventArgs>((s, e) => Dispose());
        }
	}
}
